﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace UI.Forms
{
    public partial class netSetWindow : DevExpress.XtraEditors.XtraForm
    {
        public delegate void DoAction();//如果有参数的话，定义参数 
        public DoAction FatherRefresh;
        public netSetWindow()
        {
            InitializeComponent();
            txtServer.Text = MyConfig.getAppValue("Server");
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            MyConfig.setAppValue("Server", txtServer.Text.Trim());
            my.pwopenLink();
            FatherRefresh();
            this.Close();
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}